package com.xju.ikun.service.serviceImpl;

import com.xju.ikun.bean.AlbumBean;
import com.xju.ikun.bean.MtypeBean;
import com.xju.ikun.dao.AlbumDao;
import com.xju.ikun.service.AlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AlbumServiceImpl implements AlbumService {
    @Autowired
    private AlbumDao albumDao;

    @Override
    public List<AlbumBean> findAll() {
        return albumDao.findAll();
    }

    @Override
    public int insertAlbumBean(AlbumBean albumBean) {
        return albumDao.insertAlbumBean(albumBean);
    }

    @Override
    public int updateByPrimaryKey(AlbumBean albumBean) {
        return albumDao.updateByPrimaryKey(albumBean);
    }

    @Override
    public int deleteByPrimaryKey(int aid) {
        return albumDao.deleteByPrimaryKey(aid);
    }

    @Override
    public AlbumBean findByAlbumid(int aid) {
        return albumDao.findByAlbumid(aid);
    }
}
